 /*///////////////////////////////////////////////////////////////////////////////
-- Author:      gyz
-- Created:     Thu Sep 25 09:48:31 CST 2008
-- Description:	    
-- If you have any question,please email to gaoyz@gentlesoft.com.cn 
////////////////////////////////////////////////////////////////////////////////*/
package com.ctsi.security.domain;

import java.io.Serializable;
/**
 * 用户数据权限
 * @author   gyz
 * @description  用户数据权限
 * @created	 Thu Sep 25 09:48:31 CST 2008
 */
public class UserDataObject implements Serializable {
	public static final Integer USERTYPEUSER=Integer.valueOf(1);

	private String id;
	private String userId;
	private String resId;
	private String resTypeId;
	private String action;
	private String resName;
	private String resTypeName;
	private Integer sortfactor;

	private Integer userType=USERTYPEUSER;
	
	public UserDataObject(){}
	
	public UserDataObject(String id){
		this.id=id;
	}	
	/**
	 * 获得 id
	 * @return this.id
	 */
	public String getId(){
		return this.id;
	}
	/**
	 * 设置 id
	 * @param id
	 */
	public void setId(String id){
		this.id=id;
	}
	
	/**
	 * 获得 用户登录ID
	 * @return this.userId
	 */
	public String getUserId(){
		return this.userId;
	}
	/**
	 * 设置 用户登录ID
	 * @param userId
	 */
	public void setUserId(String userId){
		this.userId=userId;
	}
	
	/**
	 * 获得 资源对象ID
	 * @return this.resId
	 */
	public String getResId(){
		return this.resId;
	}
	/**
	 * 设置 资源对象ID
	 * @param resId
	 */
	public void setResId(String resId){
		this.resId=resId;
	}
	
	/**
	 * 获得 资源类型ID
	 * @return this.resTypeId
	 */
	public String getResTypeId(){
		return this.resTypeId;
	}
	/**
	 * 设置 资源类型ID
	 * @param resTypeId
	 */
	public void setResTypeId(String resTypeId){
		this.resTypeId=resTypeId;
	}
	
	/**
	 * 获得 相应操作
	 * @return this.action
	 */
	public String getAction(){
		return this.action;
	}
	/**
	 * 设置 相应操作
	 * @param action
	 */
	public void setAction(String action){
		this.action=action;
	}
	
	/**
	 * 获得 资源对象名称
	 * @return this.resName
	 */
	public String getResName(){
		return this.resName;
	}
	/**
	 * 设置 资源对象名称
	 * @param resName
	 */
	public void setResName(String resName){
		this.resName=resName;
	}
	
	/**
	 * 获得 资源类型名称
	 * @return this.resTypeName
	 */
	public String getResTypeName(){
		return this.resTypeName;
	}
	/**
	 * 设置 资源类型名称
	 * @param resTypeName
	 */
	public void setResTypeName(String resTypeName){
		this.resTypeName=resTypeName;
	}
	
	/**
	 * 获得 排序因子
	 * @return this.sortfactor
	 */
	public Integer getSortfactor(){
		return this.sortfactor;
	}
	/**
	 * 设置 排序因子
	 * @param sortfactor
	 */
	public void setSortfactor(Integer sortfactor){
		this.sortfactor=sortfactor;
	}
	
	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Integer getUserType() {
		if(userType==null){
			return USERTYPEUSER;
		}
		return userType;
	}

}
